<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBuyResumeTable extends Migration{
    /**
     * Run the migrations.
     *
     * @return void
     */
    /** 购买简历表 browse_resume  **/
    public function up(){
        Schema::create('buy_resume', function (Blueprint $table) {
            $table->engine = 'MyISAM';
            $table->comment = '购买简历表';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->integer('company_uid')->unsigned()->index('company_uid')->default(0)->comment('所属企业会员uid');
            $table->integer('com_id')->unsigned()->index('com_id')->default(0)->comment('所属企业id');
            $table->integer('personal_uid')->unsigned()->index('personal_uid')->default(0)->comment('所属个人会员uid');
            $table->integer('resume_id')->unsigned()->index('resume_id')->default(0)->comment('所属简历id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down(){
        Schema::drop('buy_resume');
    }
}
